============================================================
 *              WEBHOOK SETUP
 * ============================================================
 *
 * Developed by SANJIT CHAURASIYA
 * Telegram: @SANJITCHAURASIYA & @SketchLeader
 *
 * ============================================================
 
PHP webhook :- 

If your PHP bot is here:
https://example.com/bot.php

set the webhook with:
https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=https://example.com/bot.php

Example :- 

https://api.telegram.org/bot123456789:ABC123.../setWebhook?url=https://example.com/bot.php


-------------------------

Python webhook :-

If your Python application is running at:
https://bot.example.com

and your Python application uses:
/webhook

then your webhook endpoint is:
https://bot.example.com/webhook

Set it with:
https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=https://bot.example.com/webhook

Example :-

https://api.telegram.org/bot123456789:ABC123.../setWebhook?url=https://bot.example.com/webhook


-------------------------

Js Webhook :-

If your Js application is running at:
https://bot.example.com

and your Js application uses:
/webhook

then your webhook endpoint is:
https://bot.example.com/webhook

Set it with:
https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=https://bot.example.com/webhook

Example :-

https://api.telegram.org/bot123456789:ABC123.../setWebhook?url=https://bot.example.com/webhook


-------------------------


Check webhook status

For either PHP, Python or JS, you can check the current webhook with:

https://api.telegram.org/botYOUR_BOT_TOKEN/getWebhookInfo

You should see information including the current webhook URL and any recent errors.